﻿using System;
using System.Globalization;

namespace Sharpmark.MarkTweet.Services.Twitter
{
    public static class ExtendMethods
    {
        public static DateTime ToDateTime(this string value)
        {
            return DateTime.ParseExact(value, "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture);
        }
        public static string ToRowString(this DateTime date)
        {
            return date.ToString("ddd MMM dd HH:mm:ss zzz yyy", CultureInfo.InvariantCulture);
        }
    }
}
